package com.sc.nft.admin.request;

import com.sc.nft.enums.ProductCdkTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class CdkAssociateProductRequest {

    @ApiModelProperty(value = "cdk活动id")
    @NotNull(message = "cdk活动id不能为空")
    private Long id;

    @ApiModelProperty(value = "商品id")
    @NotNull(message = "商品id不能为空")
    @Range(min = 1,max = 2000,message = "商品id必须大于0")
    private Long productId;

    @ApiModelProperty(value = "cdk数量")
    @NotNull(message = "cdk数量不能为空")
    private Integer cdkCount;

    @ApiModelProperty(value = "cdk类型")
    @NotNull(message = "cdk类型不能为空")
    private ProductCdkTypeEnum productType;

    @ApiModelProperty("商品名称")
    @NotBlank(message = "商品名称不能为空")
    private String firstTitle;
    @ApiModelProperty("缩率图")
    @NotBlank(message = "缩率图不能为空")
    private String creationContent;
}
